import request from '@/utils/request'

// 查询农产品认证列表
export function listCertificationInfo(query) {
  return request({
    url: '/TProductCertificationInfo/certificationInfo/list',
    method: 'get',
    params: query
  })
}

// 查询农产品认证详细
export function getCertificationInfo(id) {
  return request({
    url: '/TProductCertificationInfo/certificationInfo/' + id,
    method: 'get'
  })
}

// 新增农产品认证
export function addCertificationInfo(data) {
  return request({
    url: '/TProductCertificationInfo/certificationInfo',
    method: 'post',
    data: data
  })
}

// 修改农产品认证
export function updateCertificationInfo(data) {
  return request({
    url: '/TProductCertificationInfo/certificationInfo',
    method: 'put',
    data: data
  })
}

// 删除农产品认证
export function delCertificationInfo(id) {
  return request({
    url: '/TProductCertificationInfo/certificationInfo/' + id,
    method: 'delete'
  })
}

// 导出农产品认证
export function exportCertificationInfo(query) {
  return request({
    url: '/TProductCertificationInfo/certificationInfo/export',
    method: 'get',
    params: query
  })
}